# (c) 2008 by BogDan Vatra < bogdan@licentia.eu >

project(KontAMabil)

set(KontAMabil_SRCS	checkbox.cpp        infoview.cpp          lookuplineedit.cpp       radiobutton.cpp
			combobox.cpp        kontamabilloader.cpp  navigator.cpp            tableview.cpp
			database.cpp        kontamabilwindow.cpp  query.cpp                textedit.cpp
			dateedit.cpp        lineedit.cpp          querymodel.cpp           textedittoolbar.cpp
			flipscrollview.cpp  listview.cpp          queryselectionmodel.cpp  validator.cpp
			querylocateselectionmodel.cpp)

QT4_WRAP_CPP(KontAMabil_SRCS	flipscrollview.h      textedit.h
				infoview.h          navigator.h            textedittoolbar.h
				query.h                validator.h
				checkbox.h            kontamabilwindow.h  querymodel.h
				combobox.h            lineedit.h          queryselectionmodel.h
				database.h            listview.h          radiobutton.h
				dateedit.h            lookuplineedit.h    tableview.h
				querylocateselectionmodel.h)

QT4_ADD_RESOURCES(KontAMabil_SRCS kontAMabil.qrc kontAMabilSQL.qrc )

if (WIN32)
  add_definitions(-DLIB_EXPORTS)
endif(WIN32)

add_library(KontAMabil SHARED ${KontAMabil_SRCS})

set_target_properties(KontAMabil PROPERTIES	VERSION ${KONTAMABIL_VERSION}
                                        SOVERSION ${KONTAMABIL_VERSION})

target_link_libraries(KontAMabil ${QT_LIBRARIES})

install(TARGETS KontAMabil ${INSTALL_TARGETS_DEFAULT_ARGS})
#install(FILES DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
